package com.ruoyi.system.service;

import java.util.List;

import com.ruoyi.system.domain.TrainingCadetTeacherExperience;
import com.ruoyi.system.domain.TrainingCadetTeacherExperienceCount;

/**
 * 跟师心得Service接口
 * 
 * @author dp
 * @date 2023-11-27
 */
public interface ITrainingCadetTeacherExperienceService 
{
    /**
     * 查询跟师心得
     * 
     * @param experienceId 跟师心得主键
     * @return 跟师心得
     */
    public TrainingCadetTeacherExperience selectTrainingCadetTeacherExperienceByExperienceId(Long experienceId);

    /**
     * 查询跟师心得列表
     * 
     * @param trainingCadetTeacherExperience 跟师心得
     * @return 跟师心得集合
     */
    public List<TrainingCadetTeacherExperience> selectTrainingCadetTeacherExperienceList(TrainingCadetTeacherExperience trainingCadetTeacherExperience);

    /**
     * 查询跟师心得合计列表
     * @param submitBegin
     * @param submitEnd
     * @param baseId
     * @param experienceStatus
     * @param cadetId
     * @param cadetName
     * @return
     */
    public List<TrainingCadetTeacherExperienceCount> selectTrainingCadetTeacherExperienceCount(
            String submitBegin, String submitEnd, String baseId, String experienceStatus, Long cadetId, String cadetName);

    /**
     * 根据条件查询数据
     * @param submitBegin
     * @param submitEnd
     * @param baseId
     * @param cadetId
     * @param experienceStatus
     * @return
     */
    public List<TrainingCadetTeacherExperience> getExperienceList(String submitBegin, String submitEnd, String baseId, String cadetId, String experienceStatus);

    /**
     * 新增跟师心得
     * 
     * @param trainingCadetTeacherExperience 跟师心得
     * @return 结果
     */
    public int insertTrainingCadetTeacherExperience(TrainingCadetTeacherExperience trainingCadetTeacherExperience);

    /**
     * 修改跟师心得
     * 
     * @param trainingCadetTeacherExperience 跟师心得
     * @return 结果
     */
    public int updateTrainingCadetTeacherExperience(TrainingCadetTeacherExperience trainingCadetTeacherExperience);

    /**
     * 批量删除跟师心得
     * 
     * @param experienceIds 需要删除的跟师心得主键集合
     * @return 结果
     */
    public int deleteTrainingCadetTeacherExperienceByExperienceIds(Long[] experienceIds);

    /**
     * 删除跟师心得信息
     * 
     * @param experienceId 跟师心得主键
     * @return 结果
     */
    public int deleteTrainingCadetTeacherExperienceByExperienceId(Long experienceId);

    /**
     * 实体数据补全
     *
     * @param trainingCadetTeacherExperience 实体
     * @param userId       用户id
     * @param crateType    创建类型 1：新增 2：修改
     */
    public void completeData(TrainingCadetTeacherExperience trainingCadetTeacherExperience, Long userId, Integer crateType);
}
